package gov.pnnl.stucco.dbconnect;


import gov.pnnl.stucco.constant.Constant;

public class IndexDefinitionsToDB {

    public static void main(String[] args) {
        DBConnectionFactory factory = DBConnectionFactory.getFactory(DBConnectionFactory.Type.valueOf(Constant.STUCCO_DB_TYPE));
        factory.setConfiguration(Constant.STUCCO_DB_CONFIG);
        DBConnectionIndexerInterface conn = factory.getDBConnectionIndexer();
        conn.open();
        conn.buildIndex(Constant.STUCCO_DB_INDEX_CONFIG);
    }
}
